import sys

class Path:
	
	
	def __init__(self, filename, points):
       		self.points = points
       		self.name = filename
                self.minLat = sys.float_info.max
                self.minLon = sys.float_info.max
                self.maxLat = -sys.float_info.max
                self.maxLon = -sys.float_info.max

                # find min and max lat & lon for this path
                for (lon, lat) in points:
                        self.minLon = min(self.minLon, lon)
                        self.maxLon = max(self.maxLon, lon)
                        self.minLat = min(self.minLat, lat)
                        self.maxLat = max(self.maxLat, lat)

